<?php
namespace Common\Model;
use Think\Model;
/**
 * Created by PhpStorm.
 * User: zhaojia
 * Date: 15-9-2
 * Time: 下午4:09
 */
class ArticleTagModel extends Model{


    protected $tableName="article_tag";

    public function add_data($data){
        $this->add($data);
    }

    //获取数据
    public function get_data($where=NULL){

            $data=$this->where($where)->select();
            $tag_tid=array();
            foreach($data as $v){
                $tag_tid[]= $v['tag_tid'];
            }

            return $tag_tid;

        }

    //删除数据
    public function del_data($where=NULL){
        $this->where($where)->delete();
    }


}